$('.abs9_1').on('click',function(){
    $('.abs9_1').hide()
    $('.abs9_2').show()
    $('.register_login .center .login_box .box_top,ul').hide()
    $('.register_login .center .login_box .qr_code').show()
})


$('.abs9_2').on('click',function(){
    $('.abs9_2').hide()
    $('.abs9_1').show()
    $('.register_login .center .login_box .box_top,ul').show()
    $('.register_login .center .login_box .qr_code').hide()
})

//账号验证
let verify1=document.querySelector('.verify1')
let verification1=document.querySelector('.verification1')
verify1.onblur=function(){
    let verify1val=this.value;
    if(verify1val){
        let verify1reg=/^\d{9,11}$/
        if(!verify1reg.test(verify1val)){
            verification1.innerHTML="请输入9到11位的数字"
        }else{
            verification1.innerHTML=""
        }
    }else{
        //非空验证
        verification1.innerHTML="*用户名不能为空"
    }
}
//密码验证
let verify2=document.querySelector('.verify2')
let verification2=document.querySelector('.verification2')
verify2.onblur=function(){
    let verify2val=this.value;
    if(verify2val){
        let verify2reg=/^\d{6,16}$/
        if(!verify2reg.test(verify2val)){
            verification2.innerHTML="请输入6到16位的数字"
        }else{
            verification2.innerHTML=""
            $('.dl_box').on('click',function(){
               location ='index.html'
            })
        }
    }else{
        //非空验证
        verification2.innerHTML="*密码不能为空"
    }
}




